package com.Lacia.emsserver.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

/**
 * 防逆流电表
 * @author 万里花
 * @date 2024/6/6 15:23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class MeterAntiData {

    /**
     * Uab线电压
     */
    private Double meterVolUab;

    /**
     * Ubc线电压
     */
    private Double meterVolUbc;

    /**
     * Uca线电压
     */
    private Double meterVolUca;

    /**
     * 时间戳
     */
    @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
    @JsonProperty("timestamp")
    private Instant timestamp;

    /**
     * 堆号(户外柜默认0)
     */
    private Integer arrNum;

    /**
     * 簇号(户外柜默认0)
     */
    private Integer cluNum;

    /**
     * 设备号(户外柜默认0)
     */
    private Integer devNum;

    /**
     * Ua相电压
     */
    private Double meterVolA;

    /**
     * Ub相电压
     */
    private Double meterVolB;

    /**
     * Uc相电压
     */
    private Double meterVolC;

    /**
     * Ia相电流
     */
    private Double meterCurA;

    /**
     * Ib相电流
     */
    private Double meterCurB;

    /**
     * Ic相电流
     */
    private Double meterCurC;

    /**
     * 总有功功率
     */
    private Double meterTotP;

    /**
     * A相有功功率
     */
    private Double meterPA;

    /**
     * B相有功功率
     */
    private Double meterPB;

    /**
     * C相有功功率
     */
    private Double meterPC;

    /**
     * 总无功功率
     */
    private Double meterTotQ;

    /**
     * A相无功功率
     */
    private Double meterQA;

    /**
     * B相无功功率
     */
    private Double meterQB;

    /**
     * C相无功功率
     */
    private Double meterQC;

    /**
     * 总功率因数
     */
    private Double meterTotPf;

    /**
     * A相功率因数
     */
    private Double meterPfA;

    /**
     * B相功率因数
     */
    private Double meterPfB;

    /**
     * C相功率因数
     */
    private Double meterPfC;

    /**
     * 频率
     */
    private Double meterFreq;

    /**
     * 电压变比PT
     */
    private Double meterPt;

    /**
     * 零序电流
     */
    private Double zeroSeqCur;

    /**
     * 电压不平衡度
     */
    private Double meterVolUnd;

    /**
     * 电流不平衡度
     */
    private Double meterCurUnd;

    /**
     * T1温度
     */
    private Double meterTmpT1;

    /**
     * T2温度
     */
    private Double meterTmpT2;

    /**
     * T3温度
     */
    private Double meterTmpT3;

    /**
     * 电流CT变比
     */
    private Integer meterCt;

    /**
     * A相视在功率
     */
    private Double meterSA;

    /**
     * B相视在功率
     */
    private Double meterSB;

    /**
     * C相视在功率
     */
    private Double meterSC;

    /**
     * 总视在功率
     */
    private Double meterTotS;

    /**
     * 脉冲常数
     */
    private Double meterPulC;
}
